package server.main.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import server.main.mapper.DataDictionaryMapper;
import server.main.pojo.DataDictionary;
import server.main.service.DataDictionaryService;

import java.util.List;

/**
 * @auther MingHsZzz
 * @Date 2022/10/10  17:05
 * @project main
 * @description
 */

@Service("DataDictionaryService")
public class DataDictionaryServiceImpl extends ServiceImpl<DataDictionaryMapper, DataDictionary> implements DataDictionaryService {

   @Autowired
   DataDictionaryMapper dataDictionaryMapper;


   public List<DataDictionary> getGenders(){

      return dataDictionaryMapper.getAllGender();
   }


   public List<DataDictionary> getNationalities(){
      System.out.println(dataDictionaryMapper.getAllNationality());
      return dataDictionaryMapper.getAllNationality();
   }









}
